package com.imooc.joe_springmvc1.aop;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * Created by joe on 16-8-9.
 */
public class MainTest {

    public static void main(String[] args){
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(AopConfig.class);
        DemoAnnotationService demoAnnotationService = context.getBean(DemoAnnotationService.class);
        demoAnnotationService.add();
        context.close();
    }
}
